/*
 * XML Type:  BillStatusModResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.BillStatusModResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML BillStatusModResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class BillStatusModResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.BillStatusModResponse
{
    
    public BillStatusModResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BILLID$0 = 
        new javax.xml.namespace.QName("", "BILLID");
    private static final javax.xml.namespace.QName BILLSTATUS$2 = 
        new javax.xml.namespace.QName("", "BILLSTATUS");
    private static final javax.xml.namespace.QName BILLPMTSTATUS$4 = 
        new javax.xml.namespace.QName("", "BILLPMTSTATUS");
    
    
    /**
     * Gets the "BILLID" element
     */
    public java.lang.String getBILLID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "BILLID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetBILLID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(BILLID$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "BILLID" element
     */
    public boolean isSetBILLID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BILLID$0) != 0;
        }
    }
    
    /**
     * Sets the "BILLID" element
     */
    public void setBILLID(java.lang.String billid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BILLID$0);
            }
            target.setStringValue(billid);
        }
    }
    
    /**
     * Sets (as xml) the "BILLID" element
     */
    public void xsetBILLID(net.ofx.types.x2003.x04.IdType billid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(BILLID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(BILLID$0);
            }
            target.set(billid);
        }
    }
    
    /**
     * Unsets the "BILLID" element
     */
    public void unsetBILLID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BILLID$0, 0);
        }
    }
    
    /**
     * Gets the "BILLSTATUS" element
     */
    public net.ofx.types.x2003.x04.BillStatus getBILLSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillStatus target = null;
            target = (net.ofx.types.x2003.x04.BillStatus)get_store().find_element_user(BILLSTATUS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "BILLSTATUS" element
     */
    public boolean isSetBILLSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BILLSTATUS$2) != 0;
        }
    }
    
    /**
     * Sets the "BILLSTATUS" element
     */
    public void setBILLSTATUS(net.ofx.types.x2003.x04.BillStatus billstatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillStatus target = null;
            target = (net.ofx.types.x2003.x04.BillStatus)get_store().find_element_user(BILLSTATUS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BillStatus)get_store().add_element_user(BILLSTATUS$2);
            }
            target.set(billstatus);
        }
    }
    
    /**
     * Appends and returns a new empty "BILLSTATUS" element
     */
    public net.ofx.types.x2003.x04.BillStatus addNewBILLSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillStatus target = null;
            target = (net.ofx.types.x2003.x04.BillStatus)get_store().add_element_user(BILLSTATUS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "BILLSTATUS" element
     */
    public void unsetBILLSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BILLSTATUS$2, 0);
        }
    }
    
    /**
     * Gets the "BILLPMTSTATUS" element
     */
    public net.ofx.types.x2003.x04.BillPaymentstatus getBILLPMTSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillPaymentstatus target = null;
            target = (net.ofx.types.x2003.x04.BillPaymentstatus)get_store().find_element_user(BILLPMTSTATUS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "BILLPMTSTATUS" element
     */
    public boolean isSetBILLPMTSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BILLPMTSTATUS$4) != 0;
        }
    }
    
    /**
     * Sets the "BILLPMTSTATUS" element
     */
    public void setBILLPMTSTATUS(net.ofx.types.x2003.x04.BillPaymentstatus billpmtstatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillPaymentstatus target = null;
            target = (net.ofx.types.x2003.x04.BillPaymentstatus)get_store().find_element_user(BILLPMTSTATUS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BillPaymentstatus)get_store().add_element_user(BILLPMTSTATUS$4);
            }
            target.set(billpmtstatus);
        }
    }
    
    /**
     * Appends and returns a new empty "BILLPMTSTATUS" element
     */
    public net.ofx.types.x2003.x04.BillPaymentstatus addNewBILLPMTSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillPaymentstatus target = null;
            target = (net.ofx.types.x2003.x04.BillPaymentstatus)get_store().add_element_user(BILLPMTSTATUS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "BILLPMTSTATUS" element
     */
    public void unsetBILLPMTSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BILLPMTSTATUS$4, 0);
        }
    }
}
